#ifndef _FileReader_included_
#define _FileReader_included_

#include "common.h"
#include "agilent.h"

class FileReader{
	public:
		FileReader(string);
		~FileReader();
		uint32_t getNSample();
		char getFormatType();
		unsigned int getFormatSize();
		vector<float*> getTracks();
	private:
		string FileName;
		ifstream DataFile;
		vector<float*> Tracks;
		vector<float*> Traccie;
		uint32_t NSample;
		char FormatType;
		unsigned int FormatSize;
		
		char getFileType();
		bool isLecroy();
		bool isAgilent();
		void readLecroy();
		void readAgilent();
};

#endif
